package zs.zsxmlv.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Note {
    private String id;

    private String title;

    private String pid;

    private Integer level;

    private String docUrl;

    private Integer readCount;

    private String sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getDocUrl() {
        return docUrl;
    }

    public void setDocUrl(String docUrl) {
        this.docUrl = docUrl == null ? null : docUrl.trim();
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort == null ? null : sort.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Note() {
    }

    public Note(String title, String pid, Integer level, String docUrl, Integer readCount, String sort, Date createTime, Date updateTime) {
        this.title = title;
        this.pid = pid;
        this.level = level;
        this.docUrl = docUrl;
        this.readCount = readCount;
        this.sort = sort;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Note(String id, String title, String pid, Integer level, String docUrl, Integer readCount, String sort, Date createTime, Date updateTime) {
        this.id = id;
        this.title = title;
        this.pid = pid;
        this.level = level;
        this.docUrl = docUrl;
        this.readCount = readCount;
        this.sort = sort;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Note{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", pid='" + pid + '\'' +
                ", level=" + level +
                ", docUrl='" + docUrl + '\'' +
                ", readCount=" + readCount +
                ", sort='" + sort + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}